package com._58city.spark.app.dao;

import java.util.HashSet;
import java.util.Set;

/**
 * @author lihao
 * CPC Click在Spark计算过程中的存储数据
 */
public class CpcClickValue {

	private long pv;
	
	private long cash;
	
	private long cost;
	
	private Set<String> customers = new HashSet<String>();
	
	public CpcClickValue() {
		super();
	}

	public CpcClickValue(long pv, long cash, long cost, Set<String> customers) {
		super();
		this.pv = pv;
		this.cash = cash;
		this.cost = cost;
		this.customers = customers;
	}

	public long getPv() {
		return pv;
	}

	public void setPv(long pv) {
		this.pv = pv;
	}

	public long getCash() {
		return cash;
	}

	public void setCash(long cash) {
		this.cash = cash;
	}

	public long getCost() {
		return cost;
	}

	public void setCost(long cost) {
		this.cost = cost;
	}

	public Set<String> getCustomers() {
		return customers;
	}

	public void setCustomers(Set<String> customers) {
		this.customers = customers;
	}

	@Override
	public String toString() {
		return "CpcClickValue [pv=" + pv + ", cash=" + cash + ", cost=" + cost
				+ ", " + (customers != null ? "customers=" + customers : "")
				+ "]";
	}
	
	

}
